package com.myapp.user;

public class UserContianer {

	private static UserContianer userContianer = null;

	public static UserContianer getInstance() {
		if (userContianer == null) {
			userContianer = new UserContianer();
		}
		return userContianer;
	}

	public UserBean getUserBeanById(String id) {
		// TODO 暂时直接返回一个用户，回头将用户容器迁移到memcache中去
		UserBean userBean = new UserBean();
		userBean.setId(1);
		userBean.setName("Jay");
		userBean.setRole(Role.GM);
		userBean.setStatus(Status.AUTHORIZE);
		return userBean;
	}

}
